Timm Bäder [Tue, 25 Apr 2017 13:39:46 +0000 (15:39 +0200)]
label: Remove useless if statement
The if before this one already makes sure priv->wrap is TRUE.
Timm Bäder [Tue, 25 Apr 2017 13:22:52 +0000 (15:22 +0200)]
gtkmain: Fix code example
gtk_init doesn't take parameters anymore
Timm Bäder [Tue, 25 Apr 2017 09:57:12 +0000 (11:57 +0200)]
label: Don't use gtk_widget_set_simple_clip
The clip returned by gtk_css_gadget_allocate already includes the
box-shadow size and we manually care about the text-shadow size.
Timm Bäder [Tue, 25 Apr 2017 06:11:51 +0000 (08:11 +0200)]
frame: Compute clip directly
Timm Bäder [Mon, 24 Apr 2017 21:11:15 +0000 (23:11 +0200)]
listbox: Compute clips directly
Timm Bäder [Mon, 24 Apr 2017 17:07:59 +0000 (19:07 +0200)]
gtkwidget: Queue a resize on the parent when unparenting
gtk_widget_set_parent (via gtk_widget_reposition_after) will queue a
resize on the parent widget automatically when adding a child widget, so
unparent should do the same
Timm Bäder [Mon, 24 Apr 2017 17:07:15 +0000 (19:07 +0200)]
widget: Fix set_parent/unparent docs to not mention GtkContainer
They can both be used by non-container widgets these days.
Timm Bäder [Mon, 24 Apr 2017 16:23:53 +0000 (18:23 +0200)]
grid: Compute clip directly
Instead of iterating over the children again in
gtk_container_get_children_clip
Timm Bäder [Mon, 24 Apr 2017 16:12:03 +0000 (18:12 +0200)]
container: Use gtk_container_forall less
Just iterate over the child widgets directly and produce a much nicer
stack trace when debugging.
Timm Bäder [Sun, 23 Apr 2017 14:32:28 +0000 (16:32 +0200)]
box: Compute clips directly
Instead of using _gtk_widget_set_simple_clip *and*
gtk_container_get_children_clip
Timm Bäder [Sun, 23 Apr 2017 12:36:36 +0000 (14:36 +0200)]
testsuite: Add widget ordering test case
Timm Bäder [Sun, 23 Apr 2017 07:30:17 +0000 (09:30 +0200)]
box: Remove center child
Timm Bäder [Sat, 22 Apr 2017 20:16:27 +0000 (22:16 +0200)]
container: Remove include_internals parameter from forall
with include_internals=TRUE, this is the same as the (still private)
gtk_widget_forall, or just using the children/sibling accessors in a
loop.
Timm Bäder [Sat, 22 Apr 2017 18:18:17 +0000 (20:18 +0200)]
actionbar: Add explicit center widget
The center widget in GtkBox was only introduced to use it in
GtkActionBar. However, the implementation there is much more complex
than it needs to be, so move the center widget into GtkActionBar instead
and later remove it from GtkBox.
Timm Bäder [Fri, 21 Apr 2017 20:34:36 +0000 (22:34 +0200)]
box: Remove fill child property
GtkWidget:halign and GtkWidget:valign are sufficient
Timm Bäder [Fri, 21 Apr 2017 16:59:59 +0000 (18:59 +0200)]
box: Remove expand child property
GtkWidget already has hexpand/vexpand properties.
Timm Bäder [Fri, 7 Apr 2017 18:14:26 +0000 (20:14 +0200)]
expander: Use widgets for title box and arrow
Timm Bäder [Fri, 7 Apr 2017 18:13:42 +0000 (20:13 +0200)]
window: Make sure the decoration node stays at the beginning
Otherwise, the gtk_widget_set_parent call might add the widget node of
the child before the decoration node.
Timm Bäder [Fri, 7 Apr 2017 08:01:23 +0000 (10:01 +0200)]
levelbar: Use widgets for all blocks
This replaces all internal gadgets with widgets.
Remaining problem: "block" nodes have a min-width of 32px in Adwaita,
but when allocated in continuous mode, the levelbar doesn't care and
underallocates them.
Timm Bäder [Thu, 6 Apr 2017 17:22:14 +0000 (19:22 +0200)]
progressbar: Use widgets for all subgadgets
A GtkLabel for the possible text node and two GtkGizmos for the
trough/progress gadgets.
Timm Bäder [Thu, 6 Apr 2017 17:17:29 +0000 (19:17 +0200)]
Add GtkGizmo
GtkGizmo is the easiest possible widget to implement. It does nothing
except give its creator a way to control measure/size-allocate/snapshot,
so it can be used in a variety of use cases.
Timm Bäder [Sun, 23 Apr 2017 06:39:15 +0000 (08:39 +0200)]
overlay: Ensure proper child widget order
Make sure the main widget stays below all the overlay children.
Timm Bäder [Mon, 24 Apr 2017 19:47:24 +0000 (21:47 +0200)]
treeview: insert the column button css node in the right place
Insert the css node before setting a parent widget on the column button,
so the gtk_widget_set_parent won't attempt to add the css node as child
of the parent widget css node.
Timm Bäder [Wed, 5 Apr 2017 17:57:11 +0000 (19:57 +0200)]
widget: Add gtk_widget_insert_before/after
To insert a widget into the widget tree before or after a child widget
of the soon-to-be parent.
Timm Bäder [Sun, 9 Apr 2017 09:54:02 +0000 (11:54 +0200)]
gdk: Add 3.92 version macros
Timm Bäder [Tue, 25 Apr 2017 18:16:59 +0000 (20:16 +0200)]
Bump version to 3.91.0
So we can use GDK_AVAILABLE_IN_3_92 without getting warnings
Timm Bäder [Fri, 7 Apr 2017 17:02:35 +0000 (19:02 +0200)]
listbox: Properly remove placeholders
Timm Bäder [Fri, 7 Apr 2017 16:57:15 +0000 (18:57 +0200)]
widget-factory: Add dummy listbox placeholder
It doesn't do anything and isn't visible anyway, but it tests that
adding and removing placeholders works
Daniel Boles [Tue, 25 Apr 2017 09:57:55 +0000 (10:57 +0100)]
ProgressBar: Update node summary per last commit
The node named "progress" is a child of the node named "trough".
Timm Bäder [Sat, 22 Apr 2017 04:35:54 +0000 (06:35 +0200)]
progressbar: Fix position of text node in CSS docs
The text node has always been a child node of the progressbar node, not
the trough node, but the docs claimed otherwise.
Timm Bäder [Mon, 24 Apr 2017 14:22:32 +0000 (16:22 +0200)]
spinbutton: Add undershoot nodes to CSS docs
Timm Bäder [Mon, 24 Apr 2017 14:22:26 +0000 (16:22 +0200)]
spinbutton: Remove an unused define
Timm Bäder [Mon, 24 Apr 2017 13:12:23 +0000 (15:12 +0200)]
window: Expand CSS node docs
Timm Bäder [Fri, 21 Apr 2017 13:37:37 +0000 (15:37 +0200)]
filechooserbutton: Show/hide appropriate child
Timm Bäder [Mon, 24 Apr 2017 10:00:32 +0000 (12:00 +0200)]
paned: Fix typo
Timm Bäder [Sat, 22 Apr 2017 10:16:03 +0000 (12:16 +0200)]
testboxcss: Fix custom CSS
remove engine: parameter and add units to values
Timm Bäder [Wed, 5 Apr 2017 17:58:35 +0000 (19:58 +0200)]
gtk4-sections: Add missing GtkWidget child/sibling accessors
Timm Bäder [Mon, 3 Apr 2017 13:56:36 +0000 (15:56 +0200)]
levelbar: Remove unused define
Matthias Clasen [Sun, 23 Apr 2017 01:37:55 +0000 (21:37 -0400)]
testlist3: Handle dropping a row onto itself
Instead of spewing criticals, we should handle this
gracefully by doing nothing.
Carlos Soriano [Sat, 22 Apr 2017 19:53:45 +0000 (21:53 +0200)]
gtkplacesview.ui: Remove translatable from server label helper
Translating it seems pointless if we can use a non-translatable example
such as gnome.org instead of foo.example.com.
This will help to make changes in here without breaking string freeze.
https://bugzilla.gnome.org/show_bug.cgi?id=781622
Matthias Clasen [Sat, 22 Apr 2017 15:30:33 +0000 (11:30 -0400)]
Fix the build
Matthias Clasen [Sat, 22 Apr 2017 12:03:00 +0000 (08:03 -0400)]
Refine the listbox dnd example
Add a drag handle, and demonstrate broken offsets.
Carlos Soriano [Fri, 21 Apr 2017 15:58:30 +0000 (17:58 +0200)]
gtkplacesview: Fix unmounted open in tab/window
We were send the "open-location" signal without mounting first the
location if necessary, making the open in tab/window context menu not
work for those.
This patch makes sure we mount the location before emitting the signal.
https://bugzilla.gnome.org/show_bug.cgi?id=771269
Matthias Clasen [Fri, 21 Apr 2017 22:27:43 +0000 (18:27 -0400)]
Fix a typo
Matthias Clasen [Fri, 21 Apr 2017 21:02:05 +0000 (17:02 -0400)]
Implement dnd for list box rows in an example
This shows very basic DND of list box rows.
John Ralls [Mon, 3 Apr 2017 01:16:59 +0000 (18:16 -0700)]
Replace NSScreen:userSpaceScaleFactor, deprecated since MacOS X 10.7.
userSpaceScaleFactor is not compatible with high-resolution (aka HiDPI)
displays.
Georges Basile Stavracas Neto [Tue, 11 Apr 2017 19:46:14 +0000 (16:46 -0300)]
placesview: fix testsuite
Because the network monitor can perfectly be NULL,
the tests were failing on that for GtkPlacesView
always tries to disconnect this handler.
Fix that by only disconnecting the handler when
the network monitor exists.
https://bugzilla.gnome.org/show_bug.cgi?id=781195
Georges Basile Stavracas Neto [Mon, 10 Apr 2017 21:59:33 +0000 (18:59 -0300)]
places-view: monitor network
GtkPlacesView exposes local access points and network
shares transparently by using the 'network:///' URI,
which is handled by GIO.
Currently, however, it doesn't monitor the network
for new available points, such as computers that just
join the network. It may happen too that the backend
won't find all the networks before the network enumeration
finishes.
Fix that by keeping a file monitor inspecting the network
uri, and update the places list when that happens.
https://bugzilla.gnome.org/show_bug.cgi?id=781162
gogo [Mon, 10 Apr 2017 21:29:53 +0000 (21:29 +0000)]
Update Croatian translation
gogo [Mon, 10 Apr 2017 21:01:06 +0000 (21:01 +0000)]
Update Croatian translation
gogo [Mon, 10 Apr 2017 20:43:09 +0000 (20:43 +0000)]
Update Croatian translation
(cherry picked from commit
6e87915b0550edc2556f764af86f6a212617bfb2)
gogo [Mon, 10 Apr 2017 20:39:13 +0000 (20:39 +0000)]
Update Croatian translation
(cherry picked from commit
4f3ff059430f5b120f3ca88e19a8c94205ef8d4a)
Tom Tryfonidis [Sat, 8 Apr 2017 16:36:31 +0000 (16:36 +0000)]
Update Greek translation
Alberts Muktupāvels [Thu, 6 Apr 2017 08:16:12 +0000 (11:16 +0300)]
gtkheaderbar: add style classes to all title buttons
Commit
b187773053098cca1b7c23e04e096d47fbb65a5f added CSS style
classes for minimize, maximize and close buttons. Add similar classes
also to icon and menu buttons.
https://bugzilla.gnome.org/show_bug.cgi?id=780944
Matthias Clasen [Thu, 6 Apr 2017 00:10:09 +0000 (20:10 -0400)]
flowbox: don’t try to focus or draw NULL widgets
Rubberbanding over an empty area results in warnings, due to the code
trying to focus and queue a null pointer for drawing.
https://bugzilla.gnome.org/show_bug.cgi?id=780734
Jeremy Bicha [Mon, 3 Apr 2017 17:06:51 +0000 (13:06 -0400)]
docs: Use https for more links
https://bugzilla.gnome.org/show_bug.cgi?id=780878
Jeremy Bicha [Mon, 3 Apr 2017 16:27:50 +0000 (12:27 -0400)]
docs: Point links to correct versions
https://bugzilla.gnome.org/show_bug.cgi?id=780878
William Hua [Mon, 3 Apr 2017 16:59:50 +0000 (12:59 -0400)]
mir: clean up an ugly function
Emmanuele Bassi [Sun, 2 Apr 2017 16:27:44 +0000 (17:27 +0100)]
Use the newly added g_object_new_with_properties()
Instead of the deprecated g_object_newv().
This requires some internal surgery to create our own vector of names
and values, but it does not functionally change anything.
Emmanuele Bassi [Sun, 2 Apr 2017 16:25:46 +0000 (17:25 +0100)]
Bump up the required version of GLib
GLib 2.53 deprecated g_object_newv() and GParameter. If we want to stop
using those types without resorting to pretty convoluted pre-processor
dancing, we will need to bump up the dependency inside GTK+.
Emmanuele Bassi [Sun, 2 Apr 2017 15:36:07 +0000 (16:36 +0100)]
Ignore deprecation warnings for g_object_newv()
GLib has deprecated GParameter and g_object_newv(); until we switch to
the new g_object_new_with_properties() API, and bump GLib required
version, we should simply ignore the compiler warnings.
Timm Bäder [Sun, 2 Apr 2017 16:24:17 +0000 (18:24 +0200)]
filechooserwidget: Remove useless gtk_widget_show call
Timm Bäder [Sat, 1 Apr 2017 18:01:04 +0000 (20:01 +0200)]
stack combo: Inherit from GtkWidget
Tom Schoonjans [Tue, 28 Feb 2017 21:54:46 +0000 (21:54 +0000)]
quartz: code cleanup
removed unused static functions, unused class variables and a large
comment section that was copied over from gdkdisplay-x11.h
https://bugzilla.gnome.org/show_bug.cgi?id=779184
Tom Schoonjans [Mon, 27 Feb 2017 21:38:46 +0000 (21:38 +0000)]
quartz: add support for Gtk+4
The addition of GdkMonitor broke the quartz backend. This patch restores
that support by adding a new class GdkQuartzMonitor, and by modifying
the existing classes GdkQuartzDisplay and GdkQuartzScreen where
necessary.
It should be noted that this patch is essentially a refactor as no new
functionality that will impact the user has been added or removed.
https://bugzilla.gnome.org/show_bug.cgi?id=779184
Matthias Clasen [Sat, 1 Apr 2017 15:51:51 +0000 (11:51 -0400)]
Avoid a compiler warning
Emmanuele Bassi [Sat, 1 Apr 2017 15:39:21 +0000 (16:39 +0100)]
build: Fix sassc detection
Emmanuele Bassi [Sat, 1 Apr 2017 15:10:18 +0000 (16:10 +0100)]
Rebuild CSS on all SCSS file changes
Adwaita and HighContrast CSS should be rebuild every time one of their
dependent files change, not just the main entry point.
https://bugzilla.gnome.org/show_bug.cgi?id=780041
William Hua [Sat, 1 Apr 2017 14:04:50 +0000 (10:04 -0400)]
mir: set application name when creating connection
Emmanuele Bassi [Tue, 14 Mar 2017 16:35:58 +0000 (16:35 +0000)]
Optionally depend on sassc to generate the theme CSS
Instead of using Ruby/Sass to generate the CSS from SCSS files, we can
use the faster and more lightweight libsass/sassc binary.
We can keep the CSS files in Git to make it easier to dist GTK+, but we
can add rules to ensure they get rebuilt if the source SCSS changes.
https://bugzilla.gnome.org/show_bug.cgi?id=780041
Timm Bäder [Sat, 1 Apr 2017 14:15:10 +0000 (16:15 +0200)]
gsk: Add color shaders to resources
Timm Bäder [Sat, 1 Apr 2017 06:30:20 +0000 (08:30 +0200)]
dnd: Remove unnecessary non-toplevel GtkWindow in set_icon_surface
Instead of creating a GtkWindow, connecting to ::draw and drawing the
surface in there, then adding that window to another GtkWindow... just
use a GtkImage. This also gets rid of a bunch of utility functions used
only in gtk_drag_set_icon_surface.
William Hua [Fri, 31 Mar 2017 21:35:49 +0000 (17:35 -0400)]
mir: remove keymap and input device state warnings
William Hua [Fri, 31 Mar 2017 19:14:16 +0000 (15:14 -0400)]
mir: re-write settings implementation
Matthias Clasen [Fri, 31 Mar 2017 18:05:31 +0000 (14:05 -0400)]
3.90.0
Matthias Clasen [Fri, 31 Mar 2017 17:58:18 +0000 (13:58 -0400)]
reftests: Remove a test using -gtk-gradient
No longer available.
Matthias Clasen [Fri, 31 Mar 2017 17:55:21 +0000 (13:55 -0400)]
a11y tests: Update test results
Most of the changes here are due to visibility.
Matthias Clasen [Fri, 31 Mar 2017 16:51:40 +0000 (12:51 -0400)]
css style tests: Update expected results for gradient tests
This is the same as the previous commit.
Matthias Clasen [Fri, 31 Mar 2017 16:49:35 +0000 (12:49 -0400)]
css parser tests: Fix radial gradient test results
This changed in commit
2a5a94b2606ffae08fce634e61c533830f54c3ec.
Matthias Clasen [Fri, 31 Mar 2017 16:45:19 +0000 (12:45 -0400)]
css parser tests: Fix up the pseudo class test
We don't recognize non-standard names anymore.
Matthias Clasen [Fri, 31 Mar 2017 16:39:22 +0000 (12:39 -0400)]
css parser tests: Update border image test results
We lost the ability to dump some images.
Matthias Clasen [Fri, 31 Mar 2017 16:36:33 +0000 (12:36 -0400)]
css parser tests: Drop tests for -gtk-gradient
No longer needed.
Matthias Clasen [Fri, 31 Mar 2017 16:16:53 +0000 (12:16 -0400)]
css parser tests: Update background-image test results
We lost the ability to dump some kinds of images.
Matthias Clasen [Fri, 31 Mar 2017 16:14:33 +0000 (12:14 -0400)]
css parser tests: Fix integer test results
Many of the deprecation have been removed here.
Matthias Clasen [Fri, 31 Mar 2017 16:06:59 +0000 (12:06 -0400)]
css parser tests: Fix background-blend-mode test
The css spec calls it 'saturation', not 'saturate'.
Matthias Clasen [Fri, 31 Mar 2017 16:05:31 +0000 (12:05 -0400)]
css parser: Fix names for blend modes
When the blend modes were ported to use gsk defines, some
dashes were accidentally turned into underscores. It also
turns out that we were expecting 'saturate' instead of
'saturation' as per the css spec. Fix that as well.
Matthias Clasen [Fri, 31 Mar 2017 15:25:43 +0000 (11:25 -0400)]
css tests: Update progressbar test results
This was a documented change that has not been reflected
in the tests yet.
Matthias Clasen [Fri, 31 Mar 2017 15:19:46 +0000 (11:19 -0400)]
css tests: Update entry test results
Just visibility changes here.
Matthias Clasen [Fri, 31 Mar 2017 15:17:39 +0000 (11:17 -0400)]
css nodes: Update the combobox test results
Some changes in the details here; we removed an old widget name.
Matthias Clasen [Fri, 31 Mar 2017 15:04:18 +0000 (11:04 -0400)]
css tests: Update the GtkSwitch node tests
The node hierarchy for GtkSwitch has changed.
Matthias Clasen [Fri, 31 Mar 2017 15:03:49 +0000 (11:03 -0400)]
switch: Update css docs to reflect current reality
This should have been done when the hierarchy was changed.
Timm Bäder [Fri, 31 Mar 2017 07:54:43 +0000 (09:54 +0200)]
infobar: Remove unused defines
Timm Bäder [Fri, 10 Feb 2017 20:50:41 +0000 (21:50 +0100)]
widgetfocus: Use the same function to compare widgets
... in horizontal/vertical direction.
Timm Bäder [Fri, 10 Feb 2017 20:21:38 +0000 (21:21 +0100)]
Implement tab/up-down/left-right focus sorting for widgets
basically do what GtkContainer already did.
Timm Bäder [Fri, 10 Feb 2017 15:58:17 +0000 (16:58 +0100)]
Widget: Shuffle focus code around
Timm Bäder [Thu, 9 Feb 2017 16:59:24 +0000 (17:59 +0100)]
tests: Add widget focus test case
Shows an example of a widget that directly inherits from GtkWidget and
has multiple focusable children.
Timm Bäder [Wed, 8 Feb 2017 17:31:12 +0000 (18:31 +0100)]
statusbar: Remove margins in ui file
Widgets themselves shouldn't have margins assigned.
Timm Bäder [Wed, 8 Feb 2017 14:50:30 +0000 (15:50 +0100)]
widget: Allow focusing widgets with non-container parent
Especially if said parent also has can-focus set to FALSE, which is a
special-case we had before for GtkContainer instances.
Timm Bäder [Wed, 8 Feb 2017 14:40:06 +0000 (15:40 +0100)]
label: Fix focus implementation
Don't return TRUE if we didn't actually focus anything.
Timm Bäder [Wed, 8 Feb 2017 13:25:30 +0000 (14:25 +0100)]
window: Simplify _set_focus